//
//  ZYXMsgDetHeaderCell.m
//  RuiBeiKang
//
//  Created by iOS开发1 on 2019/1/10.
//  Copyright © 2019年 JW. All rights reserved.
//

#import "ZYXMsgDetHeaderCell.h"

@implementation ZYXMsgDetHeaderCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setInfoModel:(ZYXStudyInfoModel *)infoModel{
    //文章
    _infoModel = infoModel;
    self.nameLabel.text =infoModel.nickname;
    self.contentLabel.text = infoModel.content;
    self.timeLabel.text = infoModel.time;
    ///图片地址
    [self.iconImgView sd_setImageWithURL:[NSURL URLWithString:kImgAllUrl(infoModel.avatar)] placeholderImage:IMG(@"imgLoading")];
    _infoModel = infoModel;
    
}
-(void)setMesModel:(ZYXStudyInfoModel *)mesModel{
    //评论
    _mesModel = mesModel;
    ///图片地址
    [self.actImgView sd_setImageWithURL:[NSURL URLWithString:kImgAllUrl(mesModel.pic)] placeholderImage:IMG(@"imgLoading")];
    self.actTitleLabel.text = mesModel.title;
}
@end
